What is the Evangelist?
Evangelist is a modern JavaScript utility belt consists of reusable helper functions.
Plus, as a library, Evangelist is completely tree-shanking-friendly. Your favorite module bundler can easily inline the functionality you need with no extra configuration, instead of bundling the whole Evangelist package.
Quick start
Execute npm install evangelist
to install evangelist and its dependencies into your project directory.
Usage
import * as evangelist from 'evangelist';
let fnc = () => 5;
fnc = evangelist.wrap(fnc, (next) => next() * 2);
fnc = evangelist.wrap(fnc, (next) => next() + 1);
console.log(`fnc: ${fnc()}`);
const lower = x => x.toLowerCase();
const chars = x => x.replace(/[^\w \-]+/g, '');
const spaces = x => x.split(' ');
const dashes = x => x.join('-');
const slug = evangelist.pipe(lower, chars, spaces, dashes);
const message = slug('Hello World!');
console.log(`slug: ${message}`);
List of modules
Todo List
See GitHub Projects for more.
Requirements
License
Apache 2.0, for further details, please see LICENSE file
Contributing
See contributors.md
It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome.
- To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.
- To report a bug: If something does not work, please report it using GitHub Issues.
To Support
Visit my patreon profile at patreon.com/eserozvataf